/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package cassys.delegates;

import cassys.dataaccess.DAOException;
import cassys.datatransferobjects.ResultDTO;
import cassys.datatransferobjects.TeamResultDTO;
import cassys.ejb.sessionbean.ResultViewBeanRemote;
import cassys.servicelocator.ServiceLocator;
import java.rmi.RemoteException;
import java.util.ArrayList;

/**
 *
 * @author Priyanka
 */
public class ResultViewDelegate {
    
      private ResultViewBeanRemote resultBean = null;

    public ResultViewDelegate() {

        resultBean = (ResultViewBeanRemote) ServiceLocator.getInstance().lookupResultViewBean();

    }
    
    public  ArrayList<ResultDTO> getTotalSummaryForAllStudents() throws DAOException, RemoteException
    {
       return resultBean.getTotalSummaryForAllStudents();
    }
    
    public  ArrayList<TeamResultDTO> getTotalSummaryForAllTeam() throws DAOException, RemoteException
    {
       return resultBean.getTotalSummaryForAllTeam();
    }
    
    
    
    
    
}
